(function () {
  const app = Vue2.new({
    el: '#app',
    tpl: `<div class="outer"><div class="inner" v-on-click="onClick($event, 1)">abc</div><div class="inner" v-class="{{innerClass}}" v-on-click="onClick">1{{name}}2</div></div>`,
    data() {
      return {
        innerClass: 'inner-class',
        isActive: true,
        name: 'vue',
        left: { name: 'miao' },
        right: { name: 'miao' },
      };
    },
    methods: {
      onClick(ev, v) {
        console.log('onClick', ev, v, this.name);
        this.name += '.';
      }
    },
  });
})();
